package com.begye.smartloan.apptest.renzheng.lianxiren

import androidx.lifecycle.ViewModel

class RenZhengLianXiRenViewModel : ViewModel() {

    var fts: Long = 0L

    var contanerLayoutIds = hashMapOf<String, Int>()

    /**
     * update container layout viewIds
     */
    fun updateContainerLayoutId(key: String, viewId: Int) {
        contanerLayoutIds[key] = viewId
    }

    /**
     * get container layout by viewId
     */
    fun findContainerLayout(key: String): Int? {
        return contanerLayoutIds[key]
    }

    /**
     * get all container layout viewIds
     */
    fun findAllContainers(): List<Int> {
        return contanerLayoutIds.values.toList()
    }
}